﻿@{
    ViewBag.Title = "查看子权限列表";
}
@using FMS.UI.Extension;
@section headSecion{
    <script type="text/javascript">
        $(function () {
            $.globalHelper.datagridPara.init("/admin/permission/SonIndex/@ViewBag.pid", [@Html.GetSonBtnJs()], [[
                        {
                            field: 'perIsShow', title: '菜单', width: 20, formatter: function (colData) {
                                return colData ? "√" : "×";
                            }
                        },
                    { field: 'perName', title: '权限名称', width: 100 },
                    { field: 'perAreaName', title: '区域名称', width: 100 },
                    { field: 'perControllerName', title: '控制器名称', width: 100 },
                    { field: 'perActionName', title: 'Action名称', width: 100 },
                    {
                        field: 'perFormMethod', title: '请求方式', width: 50, formatter: function (colData) {
                            switch (colData) {
                                case 1:
                                    return "GET";
                                case 2:
                                    return "POST";
                                case 3:
                                    return "BOTH";
                            }
                        }
                    },
             {
                 field: 'perOperationType', title: '操作类型', width: 50, formatter: function (colData) {
                     switch (colData) {
                         case 1:
                             return "MENU";
                         case 2:
                             return "BUTTON";
                         case 3:
                             return "AJAX";

                     }
                 }
             },

        { field: 'perOrder', title: '排序', width: 50 }
            ]]);
            $("#tbList").datagrid($.globalHelper.datagridPara.paras);
        });
       
    </script>

}
<table id="tbList" style="width:100%"></table>

